<template>
    <div class="com-cnt">
        <button @click="getyzm">发短信</button>
    </div>
</template>

<script>
    import http from "@/assets/js/axios"
    import axios from 'axios'
    import Qs from 'qs'
    import { maskTips, maskCallback } from '@/assets/js/dom'
    export default {
        name: 'applyPage', 
        data ( ) {
            return {
                registers: {}    
            }
        }, 
        mounted ( ) {
            let x = 'http://m.xukanghui.com/'
            let xx = 'http://m.xukanghui.com/superValue'
            let xjpg = 'http://hf-resource.oss-cn-shanghai.aliyuncs.com/xwh/20180930120950/1538282520610.png'
        },      
        methods: {
            getyzm: function(){
                let that = this
                
                setInterval(function (){
                    /*let picc=new Image();
                    picc.src="http://hf-resource.oss-cn-shanghai.aliyuncs.com/xwh/20180930120950/1538282520610.png?"+new Date().getTime();
                    document.getElementById("allDiv").appendChild(picc);*/
                    let pho = '139393'+new Date().getTime().toString().substring(8)
                    //let pho = '15221421609'
                    that.registers.mobile = pho
                    const res = http.get('xshk/f/message/getValidate', that.registers)
                    console.log(res)
                },500)
            }     
        }         
    }
</script>

<style lang="stylus" scoped>
.com-cnt
    width 100%
    height 100% 
    overflow hidden
    #allDiv
        width:100%
        height:auto
	    img
            width:10px
            height:10px
            float:left
    
    
</style>